package org.tagging.dao.indonesian;

import org.apache.ibatis.annotations.Param;
import org.tagging.model.Abbreviation;
import org.tagging.model.AbbreviationIndonesian;

import java.time.LocalDateTime;
import java.util.List;

public interface AbbreviationIndonesianMapper {
    List<AbbreviationIndonesian> queryByTagId(@Param("id") Integer tagId);

    void updateSelective(Abbreviation abbreviation);

    void insertSelective(Abbreviation abbreviation);

    AbbreviationIndonesian queryById(Integer id);

    List<AbbreviationIndonesian> queryByTimePeriod(@Param("startTime") LocalDateTime startTime,
                                                   @Param("endTime") LocalDateTime endTime,
                                                   @Param("mode") int mode);
}
